
import request from '@/utils/httpRequest'
// 获取所有支付信息
export function getAllPay(query) {
  return request({
    url: '/sys/paymentChannel/select',
    method: 'get',
    params: query
  })
}

// 添加支付信息
// status
// title
export function AddPay(query) {
  return request({
    url: '/sys/paymentChannel/save',
    method: 'post',
    data: request.adornData(query, false)
  })
}

// 修改支付信息
// ids
export function editPay(query) {
  // var new_data = qs.stringify(query);
  return request({
    url: '/sys/paymentChannel/update',
    method: 'post',
    data: request.adornData(query, false)
  })
}

